package com.cn.hnust.ulity;

import com.cn.hnust.dao.ArticleMapper;
import com.cn.hnust.pojo.NM;
import com.github.pagehelper.PageHelper;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.Arrays;
import java.util.List;

/**
 * @anther 龙泽国
 */
//@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration(value = {"classpath:applicationContext.xml"})
public class Test {
//    @Autowired
//    private ArticleMapper articleMapper;
    @org.junit.Test
    public void test(){
        int ze = "longzeguo".indexOf("zr");
        String[] arr={"value:111","value:222","value:333"};
        String[] arrr=new String[100];
        for (int i = 0; i < arr.length; i++) {
            arrr[i]=arr[i].substring(6);
        }
        System.out.println(Arrays.toString(arrr));


    }
}
